﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using FacebookWrapper.ObjectModel;

namespace B12_Ex01_Eran_053094363_Assaf_036722999
{
    class GetNewsList : GetDataAndFillTextBox
    {
        public override int getData()
        {
            private FacebookManager m_FacebookManager = FacebookManager.Instance;
            List<String> newsCollection = m_FacebookManager.GetNewsFeed();
            //listBoxNews.Items.Clear();
            //foreach (var item in newsCollection)
            //{
             //   listBoxNews.Items.Add(item);
            //}

            // Update the Label Text
            linkNewsFeed.Text = string.Format("{0} ({1})", k_NewsFeedLinkText, newsCollection.Count);
        }
    }
}
